#ifndef _RETURN_H_
#define _RETURN_H_
#include "python3/PythonGrammar30TreeConstants.h"
#include "ast/stmtType.h"
#include "ast/exprType.h"
class IVisitor;
class Return;
typedef QSharedPointer<Return> ReturnPtr;

class Return: public stmtType
{
public:
    explicit Return(const exprTypePtr& value, int nodeId=JJTRETURN_STMT);
    virtual ~Return();
    
    
    exprTypePtr value();
    void setValue(const exprTypePtr& value);
    
    
    virtual QString type() const;
    virtual QString toString() const;
    virtual void accept(IVisitor* visitor, const SimpleNodePtr& node);
    virtual void traverse(IVisitor* visitor);
private:
    exprTypePtr _value;
};




#endif